package com.example.demo_server2;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/demo")
public class demoProvider {
    @RequestMapping("hi")
    public String hi(){
        return "say hi from demo Server2";
    }

    @RequestMapping("hello")
    public String hello(@RequestParam(name="name") String name){
        return "say hi from demo Server2 FROM "+name;
    }

}
